<?php

namespace app\common\model;

use think\Model;
class Host extends Model 

{
    public $OS_0  = '其他系统';
    public $OS_1  = 'Windows系统';
    public $OS_2  = 'Linux系统';
    public $OS_OTHER  = 0;//未激活
    public $OS_WINDOWS  = 1;//windows系统
    public $OS_LINUX  = 2;//linux系统
    
    /**
     * @name: 显示系统类别文字
     * @Param: 
     * @Description: 
     * @Author: foo
     * @Date: 2019-10-23 10:49:26
     */
    function showOs ($type)
    {
        if(!isset($this->{'OS_' . $type}))
        {
            return $this->OS_0;
        }
        return $this->{'OS_' . $type};
    }
}